Timm Bäder [Thu, 26 Jul 2018 07:34:12 +0000 (07:34 +0000)]
Merge branch 'g-clear-pointer-propagate' into 'master'
Remove GDestroyNotify casts in g_clear_pointer() uses
See merge request GNOME/gtk!269
Matthias Clasen [Wed, 25 Jul 2018 11:21:01 +0000 (11:21 +0000)]
Merge branch 'xfixes-timestamp' into 'master'
x11: Ignore old XFixesSelectionNotify events
Closes #14
See merge request GNOME/gtk!259
Ernestas Kulik [Wed, 25 Jul 2018 07:00:09 +0000 (10:00 +0300)]
Remove GDestroyNotify casts in g_clear_pointer() uses
GLib master propagates argument types in g_clear_pointer(), which causes
the usual function pointer casts to GDestroyNotify to trip compiler
warnings. Additionally, this commit changes some cleanup functions where
appropriate (wl_data_source_destroy ->
gtk_primary_selection_source_destroy for struct
gtk_primary_selection_source).
Benjamin Otte [Tue, 24 Jul 2018 18:23:20 +0000 (20:23 +0200)]
render: Make gtk_render_icon() use the snapshot API
This removes a lot of duplicated code.
Benjamin Otte [Tue, 24 Jul 2018 17:50:19 +0000 (19:50 +0200)]
render: Make gtk_render_frame() and gtk_render_focus() use the snapshot API
This removes a lot of duplicated code.
Benjamin Otte [Tue, 24 Jul 2018 17:38:17 +0000 (19:38 +0200)]
API: Remove gtk_render_frame_gap()
That function does not make sense at all in a CSS world. So better don't
support it anymore.
Benjamin Otte [Sat, 14 Jul 2018 19:53:29 +0000 (21:53 +0200)]
render: Make gtk_render_background() use the snapshot API
This removes a lot of duplicated code.
Benjamin Otte [Sat, 14 Jul 2018 19:24:42 +0000 (21:24 +0200)]
render: Make gtk_render_check/arrow/handle() use the snapshot API
This removes a lot of duplicated code.
Benjamin Otte [Sat, 14 Jul 2018 18:21:15 +0000 (20:21 +0200)]
render: Make gtk_render_layout() use the snapshot API
This removes a lot of duplicated code.
Benjamin Otte [Sat, 14 Jul 2018 17:02:42 +0000 (19:02 +0200)]
testsuite: Fix DragContext => Drag renaming
Benjamin Otte [Fri, 29 Jun 2018 02:48:10 +0000 (04:48 +0200)]
gtk: Move GtkGesture declaration to gtktypes.h
That way, headers can use the gesture type without having to include
gtkgesture.h
Benjamin Otte [Fri, 22 Jun 2018 16:53:59 +0000 (18:53 +0200)]
docs: Remove remains of Mir backend
Benjamin Otte [Tue, 24 Jul 2018 18:55:16 +0000 (20:55 +0200)]
broadway: Remove unused variable
Daniel Șerbănescu [Tue, 24 Jul 2018 18:09:59 +0000 (18:09 +0000)]
Update Romanian translation
Nirbheek Chauhan [Tue, 24 Jul 2018 08:29:34 +0000 (08:29 +0000)]
Merge branch 'nirbheek/misc-meson-fixes' into 'master'
Fix broadway backend build and graphene as a subproject
Closes #1197 and #1218
See merge request GNOME/gtk!265
Daniel Mustieles [Tue, 24 Jul 2018 08:03:20 +0000 (10:03 +0200)]
Updated Spanish translation
Timm Bäder [Mon, 23 Jul 2018 18:55:55 +0000 (18:55 +0000)]
Merge branch 'just-popover-menu-things' into 'master'
Post-gizmo GtkPopoverMenu fixes
See merge request GNOME/gtk!264
Nirbheek Chauhan [Mon, 23 Jul 2018 14:44:27 +0000 (20:14 +0530)]
meson: Update pango and gdk-pixbuf wrap locations
See: https://gitlab.gnome.org/GNOME/gtk/issues/1219
Nirbheek Chauhan [Fri, 6 Jul 2018 18:53:06 +0000 (00:23 +0530)]
meson: Support graphene as a fallback dependency
Don't assume graphene_dep is always a pkg-config dependency.
Closes https://gitlab.gnome.org/GNOME/gtk/issues/1197
Nirbheek Chauhan [Mon, 23 Jul 2018 11:49:31 +0000 (17:19 +0530)]
meson: libgdk-broadway.a depends on broadwayjs.h
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1218
Also fix another dependency error I found.
Daniel Mustieles [Mon, 23 Jul 2018 10:10:24 +0000 (12:10 +0200)]
Updated Spanish translation
Ernestas Kulik [Mon, 23 Jul 2018 10:05:57 +0000 (13:05 +0300)]
testpopover: Don’t set margin in menu box
The gizmo already provides sufficient padding.
Ernestas Kulik [Mon, 23 Jul 2018 10:01:01 +0000 (13:01 +0300)]
gtkpopovermenu: Conditionally chain up in gtk_popover_menu_add()
Otherwise the stack gets parented to the wrong widget and the contents
are never drawn.
Ernestas Kulik [Mon, 23 Jul 2018 10:00:11 +0000 (13:00 +0300)]
gtkpopovermenu: Drop call to gtk_widget_show()
The stack is already visible.
Matthias Clasen [Sun, 22 Jul 2018 17:16:20 +0000 (17:16 +0000)]
Drop builtin icon test
We don't have these icons anymore.
Jason Crain [Sat, 21 Jul 2018 09:17:57 +0000 (04:17 -0500)]
x11: Ignore old XFixesSelectionNotify events
GtkEntryCompletion can rapidly release and claim ownership of the
primary selection. This generates multiple XFixesSelectionNotify events,
first stating that no one owns the selection, then another stating that
we own the selection. The notification that no one owns the selection
causes GtkEntryCompletion to deselect the text, breaking inline
autocompletion.
This fixes it by ignoring any XFixesSelectionNotify with a timestamp
earlier than our clipboard timestamp.
Fixes #14
Bruce Cowan [Sat, 21 Jul 2018 11:08:03 +0000 (11:08 +0000)]
Update British English translation
Benjamin Otte [Fri, 20 Jul 2018 14:03:51 +0000 (14:03 +0000)]
Merge branch 'wip/muktupavels/remove-gtk-css-provider-get-default' into 'master'
gtkcssprovider: remove gtk_css_provider_get_default
See merge request GNOME/gtk!256
Christoph Reiter [Fri, 20 Jul 2018 13:01:29 +0000 (15:01 +0200)]
ci: add hicolor-icon-theme to the docker image
The tests complain about it, not sure if this helps.
Matthias Clasen [Fri, 20 Jul 2018 10:53:08 +0000 (06:53 -0400)]
Drop unused old icons
We don't need to ship the deprecated old stock-id named
icons and the drag cursors - we don't use them from resources
anyway.
Emin Tufan Çetin [Fri, 20 Jul 2018 11:18:15 +0000 (11:18 +0000)]
Update Turkish translation
Matthias Clasen [Thu, 19 Jul 2018 21:57:19 +0000 (17:57 -0400)]
Emoji chooser: Also check for hex boxes
We don't want to see those either.
Matthias Clasen [Thu, 19 Jul 2018 21:50:54 +0000 (17:50 -0400)]
moji chooser: Try harder to avoid fallback
We don't want to see any fallback rendering.
The current check was still letting some fallback
combinations through.
Based on work by Julian Sparber.
Matthias Clasen [Thu, 19 Jul 2018 21:31:20 +0000 (17:31 -0400)]
Quiet a compiler warning
We don't need to handle GDK_CONFIGURE here, so make the
compiler not warn about it.
Matthias Clasen [Thu, 19 Jul 2018 21:24:54 +0000 (17:24 -0400)]
testsuite: Add emoji icon names
We check for all icon names that are used in gtk.
Matthias Clasen [Thu, 19 Jul 2018 21:24:11 +0000 (17:24 -0400)]
Emoji chooser: Use icons for sections
This is more reliable than using text-style Emoji
which may not be present.
Based on work by Julian Sparber.
Matthias Clasen [Thu, 19 Jul 2018 18:06:25 +0000 (18:06 +0000)]
Merge branch 'master' into 'master'
widgetfactory: add separator tool item to presentation
See merge request GNOME/gtk!249
Matthias Clasen [Thu, 19 Jul 2018 18:04:24 +0000 (18:04 +0000)]
Merge branch 'content-provider-autoptr' into 'master'
gdk: Add auto cleanup func for GdkContentProvider
See merge request GNOME/gtk!251
Matthias Clasen [Thu, 19 Jul 2018 17:46:36 +0000 (17:46 +0000)]
Merge branch 'content-provider-docs' into 'master'
docs: Fix GdkContentProvider documentation
See merge request GNOME/gtk!254
Ernestas Kulik [Thu, 19 Jul 2018 17:05:19 +0000 (20:05 +0300)]
docs: Fix GdkContentProvider documentation
Currently it’s lacking properties, signals and class vfuncs.
Alberts Muktupāvels [Thu, 19 Jul 2018 16:14:26 +0000 (19:14 +0300)]
gtkcssprovider: remove gtk_css_provider_get_default
This function is unused since
cdc6e8272020 commit and does not
contain fallback style.
https://gitlab.gnome.org/GNOME/gtk/issues/1226
Benjamin Otte [Thu, 19 Jul 2018 13:59:21 +0000 (13:59 +0000)]
Merge branch 'content-deserializer-fixes' into 'master'
Content deserializer fixes
See merge request GNOME/gtk!252
Ernestas Kulik [Thu, 19 Jul 2018 12:55:58 +0000 (15:55 +0300)]
gdk: contentdeserializer: Fix deserializer not returning
file_uri_deserializer does not return on success, only on failure. This
commit fixes clipboard reads never finishing for some types.
Ernestas Kulik [Thu, 19 Jul 2018 12:53:08 +0000 (15:53 +0300)]
gdk: contentdeserializer: Fix stream usage
file_uri_deserializer splices a memory stream, as opposed to
string_deserializer, which uses a converter and filter stream. This
commit fixes erroneous use of GMemoryOutputStream as
GFilterOutputStream.
Ernestas Kulik [Thu, 19 Jul 2018 08:28:21 +0000 (11:28 +0300)]
gdk: Add auto cleanup func for GdkContentProvider
Matthias Clasen [Thu, 19 Jul 2018 00:22:18 +0000 (20:22 -0400)]
docs: Small updates to the migration guide
Mention that event controllers are available in 3.x, amongst others.
Matthias Clasen [Wed, 18 Jul 2018 00:23:08 +0000 (00:23 +0000)]
Merge branch 'places-sidebar-dnd' into 'master'
placessidebar: Take a GdkDrag in _set_drop_targets_visible()
Closes #1220
See merge request GNOME/gtk!247
Günther Wutz [Tue, 17 Jul 2018 19:50:19 +0000 (21:50 +0200)]
widgetfactory: add separator tool item to presentation
Ernestas Kulik [Tue, 17 Jul 2018 06:31:54 +0000 (09:31 +0300)]
placessidebar: Take a GdkDrag in _set_drop_targets_visible()
Since the function is usually called from GtkWidget::drag-{begin,end} handlers,
taking a GdkDrop does not work, especially given that
::drag-action-requested is emitted without checking the type.
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1220
Timm Bäder [Tue, 17 Jul 2018 15:33:09 +0000 (17:33 +0200)]
gesturestylus: Clarify a documentation comment
Use the proper gtkdoc syntax for signals.
Timm Bäder [Sun, 15 Jul 2018 16:52:48 +0000 (18:52 +0200)]
Remove icon extents API
Timm Bäder [Sun, 15 Jul 2018 16:09:48 +0000 (18:09 +0200)]
widget: Remove another ->priv usage
Timm Bäder [Sun, 15 Jul 2018 16:08:30 +0000 (18:08 +0200)]
sizerequest: Pull locals into closest scope
Timm Bäder [Sun, 15 Jul 2018 16:02:47 +0000 (18:02 +0200)]
Correctly mark an enum value in a doc comment
Timm Bäder [Sun, 15 Jul 2018 15:56:11 +0000 (17:56 +0200)]
sizerequest: Only check reported baselines if requested
If the passed-in store locations for the baselines are NULL anyway, we
don't need to check the reported baselines for correctness.
Timm Bäder [Sun, 15 Jul 2018 15:52:34 +0000 (17:52 +0200)]
gl renderer: Pull a few declarations into the closest scope
Timm Bäder [Sun, 15 Jul 2018 15:51:47 +0000 (17:51 +0200)]
Remove GTK_CSS_AFFECTS_CLIP
Clips don't exist anymore and this flag is unused outside of the style
property definitions in gtkcssstylepropertyimpl.c
Timm Bäder [Sun, 15 Jul 2018 15:42:56 +0000 (17:42 +0200)]
window: Don't queue an allocate if the css clip changes
clips don't exist anymore.
Timm Bäder [Sun, 15 Jul 2018 05:25:37 +0000 (07:25 +0200)]
GskRoundedRect: Typo
Timm Bäder [Sun, 15 Jul 2018 05:23:18 +0000 (07:23 +0200)]
gl renderer: Use a GArray for the shadow cache
It's very small usually, in default Adwaita the only blurred outset
shadow we have is the one for the CSD'd toplevel window.
Timm Bäder [Sat, 14 Jul 2018 09:26:00 +0000 (11:26 +0200)]
Avoid a g_object_get path
We can use gdk_device_get_n_axes instead and will get the same result.
Timm Bäder [Sun, 8 Jul 2018 20:08:07 +0000 (22:08 +0200)]
docs: Fix scroll and motion controller titles
Controller, not Controler.
Emmanuele Bassi [Tue, 17 Jul 2018 11:07:27 +0000 (11:07 +0000)]
Merge branch 'legacy-gl' into 'master'
fix the OpenGL renderer for legacy contexts
See merge request GNOME/gtk!240
Piotr Drąg [Mon, 16 Jul 2018 14:35:52 +0000 (16:35 +0200)]
Update POTFILES.in
Matthias Clasen [Mon, 16 Jul 2018 00:11:56 +0000 (20:11 -0400)]
Handle configure events in gdk
The previous attempt at removing configure events entirely
was causing some dialogs not to show up under Wayland.
Presumably due to ordering issues with emitting ::size-change
out of the backend.
Instead, keep configure events in the event queue, but handle
them on the gdk side. This keeps the ordering intact, while
still removing configure events from the api. The dialogs
show up now.
Matthias Clasen [Sun, 15 Jul 2018 23:52:28 +0000 (19:52 -0400)]
Revert "gdk: Drop configure events"
This reverts commit
a8926c9d873ce968353a2eb1d3930c4f1ac79c94.
Matthias Clasen [Sun, 15 Jul 2018 23:49:26 +0000 (19:49 -0400)]
Revert "broadway: Stop using configure events"
This reverts commit
9c827cbff4d7cd3e59fbfeb7ec5abe9c7dbf6bdb.
Matthias Clasen [Sun, 15 Jul 2018 22:18:11 +0000 (22:18 +0000)]
Merge branch 'dnd-cleanups' into 'master'
Dnd cleanups
See merge request GNOME/gtk!243
Matthias Clasen [Sun, 15 Jul 2018 20:58:22 +0000 (16:58 -0400)]
win32: Stop accessing GdkDrag members
Matthias Clasen [Sun, 15 Jul 2018 20:50:37 +0000 (16:50 -0400)]
wayland: Set actions on drag
We should pass the actions to the newly created
drag in drag_begin.
Matthias Clasen [Sun, 15 Jul 2018 20:50:06 +0000 (16:50 -0400)]
x11: Set actions on drag
We should pass the actions to the newly created
drag object in drag_begin.
Matthias Clasen [Sun, 15 Jul 2018 20:47:17 +0000 (16:47 -0400)]
x11: Rename a file
Keep in line with the parent class.
Matthias Clasen [Sun, 15 Jul 2018 20:18:06 +0000 (16:18 -0400)]
drop: stop accessing GdkDrag fields
Matthias Clasen [Sun, 15 Jul 2018 20:15:42 +0000 (16:15 -0400)]
x11: Stop using GdkDrag fields
Matthias Clasen [Sun, 15 Jul 2018 20:06:55 +0000 (16:06 -0400)]
wayland: Stop accessing GdkDrag members
Matthias Clasen [Sun, 15 Jul 2018 20:08:52 +0000 (16:08 -0400)]
Add a GdkDrag::surface property
Matthias Clasen [Sun, 15 Jul 2018 20:01:00 +0000 (16:01 -0400)]
gdkdrag: remove an unused member
The drag surface is stored in the subclasses and obtained
by via the get_drag_surface vfunc.
Matthias Clasen [Sun, 15 Jul 2018 19:56:56 +0000 (15:56 -0400)]
wayland: Drop an unused api
Nothing was calling gdk_wayland_drag_set_source_surface.
Matthias Clasen [Sun, 15 Jul 2018 19:47:43 +0000 (15:47 -0400)]
Add a private struct to GdkDrag
This will force subclasses to use proper api.
Matthias Clasen [Sun, 15 Jul 2018 19:41:20 +0000 (15:41 -0400)]
Revert "GdkDrop: drop the priv struct"
This reverts commit
d927c3bee0f169279d86e13756c5ba4f6cba94e4.
I was wrong. Better to hide the struct fields from subclasses.
Matthias Clasen [Fri, 13 Jul 2018 16:56:58 +0000 (18:56 +0200)]
dnd: Drop gdk_drag_drop
This is an inconsistently used private api, and just adds
a vfunc indirection for no other benefit.
Matthias Clasen [Sun, 15 Jul 2018 19:50:37 +0000 (19:50 +0000)]
Merge branch 'wip/matthiasc/kill-non-input-events' into 'master'
Wip/matthiasc/kill non input events
See merge request GNOME/gtk!242
Matthias Clasen [Sun, 15 Jul 2018 19:36:19 +0000 (15:36 -0400)]
Fix up some doc mishaps
When GdkWindow was renamed to GdkSurface, 'window managers'
turned into 'surface managers'. Thats not cool.
Matthias Clasen [Sun, 15 Jul 2018 19:12:14 +0000 (15:12 -0400)]
Drop gdk_surface_withdraw
'withdrawn' is an X11-centric concept, and the function
can just as well be replaced by gdk_surface_hide.
Matthias Clasen [Sun, 15 Jul 2018 18:23:54 +0000 (14:23 -0400)]
gdk: Drop map events
We are really inconsistent about generating these,
and they are not actually used in GTK+. Instead,
add a boolean GdkSurface::mapped property.
Matthias Clasen [Sun, 15 Jul 2018 18:07:40 +0000 (14:07 -0400)]
win32: Stop using expose and configure events
These no longer exist.
Matthias Clasen [Sun, 15 Jul 2018 18:01:59 +0000 (14:01 -0400)]
broadway: Stop using configure events
These no longer exist.
Matthias Clasen [Sun, 15 Jul 2018 12:48:46 +0000 (08:48 -0400)]
gdk: Drop expose events
Replace expose events with a GdkSurface::expose signal.
This is part of the move to use events only for input.
Matthias Clasen [Sun, 15 Jul 2018 14:45:57 +0000 (10:45 -0400)]
gdk: Drop configure events
Replace configure events with a GdkSurface::size-changed signal.
This is part of the move to use events only for input.
Matthias Clasen [Sun, 15 Jul 2018 12:17:25 +0000 (08:17 -0400)]
popover: Drop some dead code
This will be done differently, using xdg-popup instead
of subsurfaces, so no point in keeping this.
Matthias Clasen [Sat, 14 Jul 2018 17:50:14 +0000 (13:50 -0400)]
text display: correct a comment
Elias Aebi [Sat, 14 Jul 2018 12:31:50 +0000 (14:31 +0200)]
gl: implement clipping for legacy contexts
Elias Aebi [Sat, 14 Jul 2018 12:20:30 +0000 (14:20 +0200)]
gl: fix compilation errors for legacy context shaders
Benjamin Otte [Sat, 14 Jul 2018 03:26:33 +0000 (05:26 +0200)]
textview: Only create cairo context in gtktextdisplay.c
Everything else is done using GtkSnapshot now, including renaming the
draw_layer vfunc to snapshot_layer.
Benjamin Otte [Fri, 13 Jul 2018 16:59:01 +0000 (18:59 +0200)]
x11: Set BackPixmap = None unconditionally
Makes it more obvious what we actually want.
Related: #1134
Piotr Drąg [Fri, 13 Jul 2018 13:11:45 +0000 (15:11 +0200)]
Update POTFILES.in
Benjamin Otte [Fri, 13 Jul 2018 12:52:43 +0000 (14:52 +0200)]
window: Update opaque region if background-color changes
The opaque region is only set when the background color is opaque. So
we need to do something about it when the background color changes.
However, in the case where a size allocation is going to happen, we
already do this update in size_allocate(), so in that case avoid doing
it twice.
Benjamin Otte [Tue, 10 Jul 2018 11:28:37 +0000 (13:28 +0200)]
gtk-demo: Update aspect-ratio when selecting new puzzle
Benjamin Otte [Tue, 10 Jul 2018 11:05:21 +0000 (13:05 +0200)]
textview: Use snapshot on the sidebars
Benjamin Otte [Fri, 6 Jul 2018 08:43:14 +0000 (10:43 +0200)]
widgetpaintable: Add a hack to make recursion not infloop
Makes the GUADEC talk not crash that I'm supposed to give in 20 minutes.